<!DOCTYPE html>
<html  lang="zh-CN" >
<head>
  <meta charset="UTF-8">
  <meta name="viewport"
    content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <meta name="theme-color" content="#fff" id="theme-color">
  <meta name="description" content="淡漠DM的博客">
  <link rel="icon" href="/img/logo.png">
  <title>个人博客部署七牛云，并且使用自定义域名</title>
  
  
  <meta property="og:title" content="个人博客部署七牛云，并且使用自定义域名">
  
  
  <meta property="og:url" content="http://blog.tomyres.com/2021/01/30/blog-3/index.html">
  
  
  <meta property="og:img" content="/img/author.jpg">
  
  
  <meta property="og:img" content="无需购买服务器，即可部署个人博客，可自定义域名。完整教程，每一步都有介绍">
  
  
  <meta property="og:type" content="article">
  <meta property="og:article:published_time" content="2021-01-30">
  <meta property="og:article:modified_time" content="2021-01-29">
  <meta property="og:article:author" content="淡漠DM">
  
  
  <meta property="og:article:tag" content="七牛云">
  
  <meta property="og:article:tag" content="自定义域名">
  
  
  
  
  <script>
    // control reverse button
    var reverseDarkList = {
      dark: 'light',
      light: 'dark'
    };
    var themeColor = {
      dark: '#1c1c1e',
      light: '#fff'
    }
    // get the data of css prefers-color-scheme
    var getCssMediaQuery = function() {
      return window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light';
    };
    // reverse current darkmode setting function
    var reverseDarkModeSetting = function() {
      var setting = localStorage.getItem('user-color-scheme');
      if(reverseDarkList[setting]) {
        setting = reverseDarkList[setting];
      } else if(setting === null) {
        setting = reverseDarkList[getCssMediaQuery()];
      } else {
        return;
      }
      localStorage.setItem('user-color-scheme', setting);
      return setting;
    };
    // apply current darkmode setting
    var setDarkmode = function(mode) {
      var setting = mode || localStorage.getItem('user-color-scheme');
      if(setting === getCssMediaQuery()) {
        document.documentElement.removeAttribute('data-user-color-scheme');
        localStorage.removeItem('user-color-scheme');
        document.getElementById('theme-color').content = themeColor[setting];
      } else if(reverseDarkList[setting]) {
        document.documentElement.setAttribute('data-user-color-scheme', setting);
        document.getElementById('theme-color').content = themeColor[setting];
      } else {
        document.documentElement.removeAttribute('data-user-color-scheme');
        localStorage.removeItem('user-color-scheme');
        document.getElementById('theme-color').content = themeColor[getCssMediaQuery()];
      }
    };
    setDarkmode();
  </script>
  <script>
    function loadScript(url, cb) {
      var script = document.createElement('script');
      script.src = url;
      if (cb) script.onload = cb;
      script.async = true;
      document.body.appendChild(script);
    }
  </script>
  
  <link rel="preload" href="//at.alicdn.com/t/font_1946621_i1kgafibvw.css" as="style" >
  <link rel="preload" href="//at.alicdn.com/t/font_1952792_89b4ac4k4up.css" as="style" >
  
  <link rel="preload" href="/js/lib/lightbox/baguetteBox.min.js" as="script">
  <link rel="preload" href="/js/lib/lightbox/baguetteBox.min.css" as="style" >
  
  
  <link rel="preload" href="/js/lib/lozad.min.js" as="script">
  
  
  
  
  
  
  <link rel="prefetch" href="//unpkg.com/valine/dist/Valine.min.js" as="script">
  
  
  
  
<link rel="stylesheet" href="/css/main.css">

  
  
<link rel="stylesheet" href="//at.alicdn.com/t/font_1946621_i1kgafibvw.css">

  
  
<link rel="stylesheet" href="//at.alicdn.com/t/font_1952792_89b4ac4k4up.css">

  
  
<link rel="stylesheet" href="/js/lib/lightbox/baguetteBox.min.css">

  
  
  
  
  
  
  <link href="/js/lib/prism/prism-tomorrow.min.css" rel="stylesheet" data-prism="prism-tomorrow">
  
  
  
<link rel="stylesheet" href="/js/lib/prism/prism-line-numbers.min.css">

  
  
  
<meta name="generator" content="Hexo 5.3.0"></head>


<body>
  <div class="wrapper">
    
    <nav class="navbar">
  <div class="navbar-logo">
    <span class="navbar-logo-main">
      
      <img class="navbar-logo-img" src="/img/logo.png" alt="logo">
      
      <span class="navbar-logo-dsc">淡漠-Blog</span>
    </span>
  </div>
  <div class="navbar-menu">
    
    <a href="/" class="navbar-menu-item">
    
    首页
    
    </a>
    
    <a href="/archives" class="navbar-menu-item">
    
    归档
    
    </a>
    
    <a href="/tags" class="navbar-menu-item">
    
    标签
    
    </a>
    
    <a href="/categories" class="navbar-menu-item">
    
    分类
    
    </a>
    
    <a href="/about" class="navbar-menu-item">
    
    关于
    
    </a>
    
    <a href="/links" class="navbar-menu-item">
    
    友链
    
    </a>
    
    <a class="navbar-menu-item darknavbar" id="dark"><i class="iconfont icon-weather"></i></a>
    <a class="navbar-menu-item searchnavbar" id="search"><i class="iconfont icon-search" style="font-size: 1.2rem; font-weight: 400;"></i></a>
  </div>
</nav>
    
    <div id="local-search" style="display: none;">
      <input class="navbar-menu-item" id="search-input" placeholder="请输入搜索内容...">
      <div id="search-content"></div>
    </div>
    
    <div class="section-wrap">
      <div class="container">
        <div class="columns">
          <main class="main-column">
<article class="card card-content">
  <header>
    <h1 class="post-title">
      个人博客部署七牛云，并且使用自定义域名
    </h1>
  </header>
  <div class="post-meta post-show-meta">
    <time datetime="2021-01-30T03:47:00.000Z">
      <i class="iconfont icon-calendar" style="margin-right: 2px;"></i>
      <span>2021-01-30</span>
    </time>
    
    <span class="dot"></span>
    
    <a href="/categories/个人博客/" class="post-meta-link">个人博客</a>
    
    
    
    <span class="dot"></span>
    <span>703 字</span>
    
  </div>
  
  <div class="post-meta post-show-meta" style="margin-top: -10px;">
    <div style="display: flex; align-items: center;">
      <i class="iconfont icon-biaoqian" style="margin-right: 2px; font-size: 1.15rem;"></i>
      
      
        <a href="/tags/七牛云/" class="post-meta-link">七牛云</a>
      
      
      <span class="dot"></span>
      
        <a href="/tags/自定义域名/" class="post-meta-link">自定义域名</a>
      
    </div>
  </div>
  
  </header>
  <div id="section" class="post-content">
    <h2 id="前言"><a href="#前言" class="headerlink" title="前言"></a>前言</h2><p>Hello大家好！上次淡漠带大家用最简单的方式开发了自己的专属博客，并且部署到 gitee 上，相信有的小伙伴还不满足，主要是因为 gitee 不支持免费自定义域名，那么之前为什么不部署到 github 呢？github 虽然支持免费自定义域名，但是主要还是网速慢~</p>
<p>那么，这一次淡漠就给大家介绍一个可以免费部署，并且自定义域名的平台——七牛云（<a target="_blank" rel="noopener" href="https://www.qiniu.com/">https://www.qiniu.com/</a>），不仅如此，相比 gitee，七牛云每一次上传项目后都不需要重新更新部署，可以做到项目及时更新</p>
<h2 id="一、配置七牛云空间"><a href="#一、配置七牛云空间" class="headerlink" title="一、配置七牛云空间"></a>一、配置七牛云空间</h2><h3 id="为空间绑定域名"><a href="#为空间绑定域名" class="headerlink" title="为空间绑定域名"></a>为空间绑定域名</h3><p>登录七牛云，进入对象存储，创建新空间</p>
<p><img src="/img/note/%E5%BE%AE%E4%BF%A1%E6%88%AA%E5%9B%BE_20210129111826.png" alt="微信截图_20210129111826" srcset="data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20300%20300'%3E%3C/svg%3E" data-src="/img/note/%E5%BE%AE%E4%BF%A1%E6%88%AA%E5%9B%BE_20210129111826.png" class="lozad post-image"></p>
<h3 id="注意"><a href="#注意" class="headerlink" title="注意"></a>注意</h3><p>这里淡漠的域名是备案过的，未备案的小伙伴记得备案</p>
<p>为该空间绑定域名</p>
<p><img src="/img/note/%E5%BE%AE%E4%BF%A1%E6%88%AA%E5%9B%BE_20210129111849.png" alt="微信截图_20210129111849" srcset="data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20300%20300'%3E%3C/svg%3E" data-src="/img/note/%E5%BE%AE%E4%BF%A1%E6%88%AA%E5%9B%BE_20210129111849.png" class="lozad post-image"></p>
<p>点击【绑定域名】</p>
<p><img src="/img/note/image-20210129192227771.png" alt="image-20210129192227771" srcset="data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20300%20300'%3E%3C/svg%3E" data-src="/img/note/image-20210129192227771.png" class="lozad post-image"></p>
<p>输入域名</p>
<p><img src="/img/note/image-20210129192303044.png" alt="image-20210129192303044" srcset="data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20300%20300'%3E%3C/svg%3E" data-src="/img/note/image-20210129192303044.png" class="lozad post-image"></p>
<p>复制 CNAME</p>
<p><img src="/img/note/image-20210129192408381.png" alt="image-20210129192408381" srcset="data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20300%20300'%3E%3C/svg%3E" data-src="/img/note/image-20210129192408381.png" class="lozad post-image"></p>
<p>主机记录和刚才在七牛云填的域名头部一致，如：<a target="_blank" rel="noopener" href="http://www.xxx.com/">www.xxx.com</a> 就填 www</p>
<p><img src="/img/note/image-20210129120602747.png" alt="image-20210129120602747" srcset="data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20300%20300'%3E%3C/svg%3E" data-src="/img/note/image-20210129120602747.png" class="lozad post-image"></p>
<h3 id="配置HTTPS"><a href="#配置HTTPS" class="headerlink" title="配置HTTPS"></a>配置HTTPS</h3><p>点击【配置HTTPS】</p>
<p><img src="/img/note/image-20210129192544210.png" alt="image-20210129192544210" srcset="data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20300%20300'%3E%3C/svg%3E" data-src="/img/note/image-20210129192544210.png" class="lozad post-image"></p>
<p><img src="/img/note/image-20210129192658267.png" alt="image-20210129192658267" srcset="data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20300%20300'%3E%3C/svg%3E" data-src="/img/note/image-20210129192658267.png" class="lozad post-image"></p>
<p>上传证书（没有域名证书或不懂申请证书的小伙伴可以翻阅一下淡漠之前写的【域名注册】）</p>
<p><img src="/img/note/image-20210129115722204.png" alt="image-20210129115722204" srcset="data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20300%20300'%3E%3C/svg%3E" data-src="/img/note/image-20210129115722204.png" class="lozad post-image"></p>
<p>转换证书格式</p>
<p><img src="/img/note/image-20210129115748846.png" alt="image-20210129115748846" srcset="data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20300%20300'%3E%3C/svg%3E" data-src="/img/note/image-20210129115748846.png" class="lozad post-image"></p>
<p><a target="_blank" rel="noopener" href="https://myssl.com/cert_convert.html">证书格式转换入口</a></p>
<p>原格式为 JKS，目标格式为 PEM</p>
<p><img src="/img/note/image-20210129115901772.png" alt="image-20210129115901772" srcset="data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20300%20300'%3E%3C/svg%3E" data-src="/img/note/image-20210129115901772.png" class="lozad post-image"></p>
<p>选择 Tomcat 目录下的 JKS文件并上传，将 keystorePass.txt 的内容填入【原文件密码】</p>
<p><img src="/img/note/image-20210129115816173.png" alt="image-20210129115816173" srcset="data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20300%20300'%3E%3C/svg%3E" data-src="/img/note/image-20210129115816173.png" class="lozad post-image"></p>
<p><img src="/img/note/image-20210129115926507.png" alt="image-20210129115926507" srcset="data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20300%20300'%3E%3C/svg%3E" data-src="/img/note/image-20210129115926507.png" class="lozad post-image"></p>
<p>转换后的证书如下</p>
<p><img src="/img/note/image-20210129120102122.png" alt="image-20210129120102122" srcset="data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20300%20300'%3E%3C/svg%3E" data-src="/img/note/image-20210129120102122.png" class="lozad post-image"></p>
<p>将证书 CER 和 KEY 文件里面的所有内容（含分割线）copy 到 【证书内容】和【证书私钥】，【证书备注名】随意填</p>
<p><img src="/img/note/image-20210129120231088.png" alt="image-20210129120231088" srcset="data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20300%20300'%3E%3C/svg%3E" data-src="/img/note/image-20210129120231088.png" class="lozad post-image"></p>
<p>保存内容，完成证书上传</p>
<p><img src="/img/note/image-20210129120306281.png" alt="image-20210129120306281" srcset="data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20300%20300'%3E%3C/svg%3E" data-src="/img/note/image-20210129120306281.png" class="lozad post-image"></p>
<p>进入刚才的域名管理页面，选择上传的证书</p>
<p><img src="/img/note/image-20210129192912456.png" alt="image-20210129192912456" srcset="data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20300%20300'%3E%3C/svg%3E" data-src="/img/note/image-20210129192912456.png" class="lozad post-image"></p>
<h2 id="二、部署项目"><a href="#二、部署项目" class="headerlink" title="二、部署项目"></a>二、部署项目</h2><h3 id="配置空间"><a href="#配置空间" class="headerlink" title="配置空间"></a>配置空间</h3><p>开启默认首页，默认将 index.html 作为域名首页</p>
<p><img src="/img/note/image-20210129122124809.png" alt="image-20210129122124809" srcset="data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20300%20300'%3E%3C/svg%3E" data-src="/img/note/image-20210129122124809.png" class="lozad post-image"></p>
<p>下七牛云提供的 qshell（<a target="_blank" rel="noopener" href="https://developer.qiniu.com/kodo/1302/qshell%EF%BC%89%EF%BC%8C%E5%AF%B9%E7%A9%BA%E9%97%B4%E8%BF%9B%E8%A1%8C%E6%93%8D%E4%BD%9C">https://developer.qiniu.com/kodo/1302/qshell），对空间进行操作</a></p>
<h3 id="注意-1"><a href="#注意-1" class="headerlink" title="注意"></a>注意</h3><p>下载的 qshellxxx.exe 文件需要改名为 qshell.exe，否则不能直接通过 qshell 调用</p>
<p><img src="/img/note/image-20210129130356895.png" alt="image-20210129130356895" srcset="data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20300%20300'%3E%3C/svg%3E" data-src="/img/note/image-20210129130356895.png" class="lozad post-image"></p>
<p>配置环境变量</p>
<p><img src="/img/note/image-20210129131026775.png" alt="image-20210129131026775" srcset="data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20300%20300'%3E%3C/svg%3E" data-src="/img/note/image-20210129131026775.png" class="lozad post-image"></p>
<p>添加 qshell.exe 所在目录</p>
<p><img src="/img/note/image-20210129131003907.png" alt="image-20210129131003907" srcset="data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20300%20300'%3E%3C/svg%3E" data-src="/img/note/image-20210129131003907.png" class="lozad post-image"></p>
<p>测试 qshell</p>
<p><img src="/img/note/image-20210129131121851.png" alt="image-20210129131121851" srcset="data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20300%20300'%3E%3C/svg%3E" data-src="/img/note/image-20210129131121851.png" class="lozad post-image"></p>
<p>配置 qshell 账号</p>
<pre class="line-numbers language-none"><code class="language-none">qshell account ak sk name<span aria-hidden="true" class="line-numbers-rows"><span></span></span></code></pre>
<p><code>ak</code> 七牛云的 AccessKey</p>
<p><code>sk</code> 七牛云的 SecretKey</p>
<p><code>name</code> 该账号的名称（随意）</p>
<p><img src="/img/note/image-20210129141434628.png" alt="image-20210129141434628" srcset="data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20300%20300'%3E%3C/svg%3E" data-src="/img/note/image-20210129141434628.png" class="lozad post-image"></p>
<p>新建 upload.conf</p>
<pre class="line-numbers language-none"><code class="language-none">&#123;
  &quot;src_dir&quot;: &quot;D:\\VSCodePro\\blog\\public&quot;,
  &quot;bucket&quot;: &quot;blog&quot;,
  &quot;overwrite&quot; : true,
  &quot;rescan_local&quot; : true
&#125;<span aria-hidden="true" class="line-numbers-rows"><span></span><span></span><span></span><span></span><span></span><span></span></span></code></pre>
<p><code>src_dir</code> 根目录地址，不可使用相对路径</p>
<p><code>bucket</code> 储存空间名称</p>
<p><code>overwrite</code> 是否覆盖</p>
<p><code>rescan_local</code> 是否检查新增文件</p>
<p>上传项目</p>
<pre class="line-numbers language-none"><code class="language-none">qshell qupload upload.conf<span aria-hidden="true" class="line-numbers-rows"><span></span></span></code></pre>
<h3 id="配置一键上传"><a href="#配置一键上传" class="headerlink" title="配置一键上传"></a>配置一键上传</h3><p>将 upload.conf 放到项目根目录下，配置 package.sjon</p>
<pre class="line-numbers language-none"><code class="language-none">&quot;scripts&quot;: &#123;
	......
    &quot;publish&quot;: &quot;hexo clean &amp;&amp; hexo generate &amp;&amp; qshell qupload upload.conf&quot;
&#125;,<span aria-hidden="true" class="line-numbers-rows"><span></span><span></span><span></span><span></span></span></code></pre>
<p>每次更新项目后，执行 <code>npm run publish</code> 即可发布项目</p>

  </div>
  <div>
  
  <div class="post-note note-warning copyright" style="margin-top: 42px">
    <p><span style="font-weight: bold;">作者：</span><a target="_blank" rel="nofollow noopener noreferrer" href="http://blog.tomyres.com/about">淡漠DM</a></p>
    <p><span style="font-weight: bold;">文章链接：</span><a target="_blank" rel="nofollow noopener noreferrer" href="http://blog.tomyres.com/2021/01/30/blog-3/">http://blog.tomyres.com/2021/01/30/blog-3/</a></p>
    <p><span style="font-weight: bold;">版权声明：</span>本博客所有文章除特别声明外，均采用<a target="_blank" rel="noopener" href="https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh">CC BY-NC-SA 4.0 协议</a>。转载请注明出处！</p>
  </div>
  
  </div>
</article>
<div class="nav">
  
  
  <div class="nav-item-next">
    <a href="/2021/01/29/blog-2/" class="nav-link">
      <div>
        <div class="nav-label">下一篇</div>
        
        <div class="nav-title">小技巧，方便写个人博客MD文档 </div>
        
      </div>
      <i class="iconfont icon-right nav-next-icon"></i>
    </a>
  </div>
  
</div>

<div class="card card-content comment-card" style="margin-top: 16px;">
  <div class="comment-card-title">评论</div>
  
  <div id="vcomments"></div>
  
  <script>
    loadScript("//unpkg.com/valine/dist/Valine.min.js");
    var oldLoadVa = window.onload;
    window.onload = function () {
      oldLoadVa && oldLoadVa();
      new Valine({
        el: '#vcomments',
        appId: 'yCtTrCmh5gIiOdpVsrQFQ7mV-gzGzoHsz',
        appKey: 'Gj2RnArTDCt9UCInhJkEIubB',
        placeholder: 'Just go go',
        path: window.location.pathname,
        avatar: 'mp',
        meta: ["nick","mail","link"],
        pageSize: '10',
        lang: '',
        visitor: 'false',
        highlight: true,
        recordIP: false,
        
        
        
        enableQQ: 'false',
        requiredFields: [],
      });
    };
  </script>

</div>

<div class="card card-content toc-card" id="mobiletoc">
  <div class="toc-header"><i class="iconfont icon-menu" style="padding-right: 2px;"></i>目录</div>
<ol class="toc"><li class="toc-item toc-level-2"><a class="toc-link" href="#%E5%89%8D%E8%A8%80"><span class="toc-text">前言</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E4%B8%80%E3%80%81%E9%85%8D%E7%BD%AE%E4%B8%83%E7%89%9B%E4%BA%91%E7%A9%BA%E9%97%B4"><span class="toc-text">一、配置七牛云空间</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#%E4%B8%BA%E7%A9%BA%E9%97%B4%E7%BB%91%E5%AE%9A%E5%9F%9F%E5%90%8D"><span class="toc-text">为空间绑定域名</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E6%B3%A8%E6%84%8F"><span class="toc-text">注意</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E9%85%8D%E7%BD%AEHTTPS"><span class="toc-text">配置HTTPS</span></a></li></ol></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E4%BA%8C%E3%80%81%E9%83%A8%E7%BD%B2%E9%A1%B9%E7%9B%AE"><span class="toc-text">二、部署项目</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#%E9%85%8D%E7%BD%AE%E7%A9%BA%E9%97%B4"><span class="toc-text">配置空间</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E6%B3%A8%E6%84%8F-1"><span class="toc-text">注意</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E9%85%8D%E7%BD%AE%E4%B8%80%E9%94%AE%E4%B8%8A%E4%BC%A0"><span class="toc-text">配置一键上传</span></a></li></ol></li></ol>
</div></main>
          <aside class="left-column">
            
            <div class="card card-author">
              
<img src="/img/author.jpg" class="author-img">

<p class="author-name">淡漠DM</p>
<p class="author-description">最有趣的编程，莫过于服务生活。</p>
<div class="author-message">
  <a class="author-posts-count" href="/archives">
    <span>4</span>
    <span>文章</span>
  </a>
  <a class="author-categories-count" href="/categories">
    <span>2</span>
    <span>分类</span>
  </a>
  <a class="author-tags-count" href="/tags">
    <span>7</span>
    <span>标签</span>
  </a>
</div>

            </div>
            
            <div class="sticky-tablet">
  
  
  <article class="display-when-two-columns spacer">
    <div class="card card-content toc-card">
      <div class="toc-header"><i class="iconfont icon-menu" style="padding-right: 2px;"></i>目录</div>
<ol class="toc"><li class="toc-item toc-level-2"><a class="toc-link" href="#%E5%89%8D%E8%A8%80"><span class="toc-text">前言</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E4%B8%80%E3%80%81%E9%85%8D%E7%BD%AE%E4%B8%83%E7%89%9B%E4%BA%91%E7%A9%BA%E9%97%B4"><span class="toc-text">一、配置七牛云空间</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#%E4%B8%BA%E7%A9%BA%E9%97%B4%E7%BB%91%E5%AE%9A%E5%9F%9F%E5%90%8D"><span class="toc-text">为空间绑定域名</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E6%B3%A8%E6%84%8F"><span class="toc-text">注意</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E9%85%8D%E7%BD%AEHTTPS"><span class="toc-text">配置HTTPS</span></a></li></ol></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E4%BA%8C%E3%80%81%E9%83%A8%E7%BD%B2%E9%A1%B9%E7%9B%AE"><span class="toc-text">二、部署项目</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#%E9%85%8D%E7%BD%AE%E7%A9%BA%E9%97%B4"><span class="toc-text">配置空间</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E6%B3%A8%E6%84%8F-1"><span class="toc-text">注意</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E9%85%8D%E7%BD%AE%E4%B8%80%E9%94%AE%E4%B8%8A%E4%BC%A0"><span class="toc-text">配置一键上传</span></a></li></ol></li></ol>
    </div>
  </article>
  
  
  <article class="card card-content categories-widget">
    <div class="categories-card">
  <div class="categories-header"><i class="iconfont icon-fenlei" style="padding-right: 2px;"></i>分类</div>
  <div class="categories-list">
    
      <a href="/categories/个人博客">
        <div class="categories-list-item">
          个人博客
          <span class="categories-list-item-badge">3</span>
        </div>
      </a>
    
      <a href="/categories/域名">
        <div class="categories-list-item">
          域名
          <span class="categories-list-item-badge">1</span>
        </div>
      </a>
    
  </div>
</div>
  </article>
  
  <article class="card card-content tags-widget">
    <div class="tags-card">
  <div class="tags-header"><i class="iconfont icon-biaoqian" style="padding-right: 2px;"></i>热门标签</div>
  <div class="tags-list">
    
    <a href="\tags\搭建个人博客" title="搭建个人博客"><div class="tags-list-item">搭建个人博客</div></a>
    
    <a href="\tags\Hexo搭建博客" title="Hexo搭建博客"><div class="tags-list-item">Hexo搭建博客</div></a>
    
    <a href="\tags\博客小技巧" title="博客小技巧"><div class="tags-list-item">博客小技巧</div></a>
    
    <a href="\tags\域名注册" title="域名注册"><div class="tags-list-item">域名注册</div></a>
    
    <a href="\tags\证书申请" title="证书申请"><div class="tags-list-item">证书申请</div></a>
    
    <a href="\tags\七牛云" title="七牛云"><div class="tags-list-item">七牛云</div></a>
    
    <a href="\tags\自定义域名" title="自定义域名"><div class="tags-list-item">自定义域名</div></a>
    
  </div>
</div>
  </article>
  
  
</div>
          </aside>
          <aside class="right-column">
            <div class="sticky-widescreen">
  
  
  <article class="card card-content toc-card">
    <div class="toc-header"><i class="iconfont icon-menu" style="padding-right: 2px;"></i>目录</div>
<ol class="toc"><li class="toc-item toc-level-2"><a class="toc-link" href="#%E5%89%8D%E8%A8%80"><span class="toc-text">前言</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E4%B8%80%E3%80%81%E9%85%8D%E7%BD%AE%E4%B8%83%E7%89%9B%E4%BA%91%E7%A9%BA%E9%97%B4"><span class="toc-text">一、配置七牛云空间</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#%E4%B8%BA%E7%A9%BA%E9%97%B4%E7%BB%91%E5%AE%9A%E5%9F%9F%E5%90%8D"><span class="toc-text">为空间绑定域名</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E6%B3%A8%E6%84%8F"><span class="toc-text">注意</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E9%85%8D%E7%BD%AEHTTPS"><span class="toc-text">配置HTTPS</span></a></li></ol></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E4%BA%8C%E3%80%81%E9%83%A8%E7%BD%B2%E9%A1%B9%E7%9B%AE"><span class="toc-text">二、部署项目</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#%E9%85%8D%E7%BD%AE%E7%A9%BA%E9%97%B4"><span class="toc-text">配置空间</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E6%B3%A8%E6%84%8F-1"><span class="toc-text">注意</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E9%85%8D%E7%BD%AE%E4%B8%80%E9%94%AE%E4%B8%8A%E4%BC%A0"><span class="toc-text">配置一键上传</span></a></li></ol></li></ol>
  </article>
  
  
  <article class="card card-content">
    <div class="recent-posts-card">
  <div class="recent-posts-header"><i class="iconfont icon-wenzhang_huaban" style="padding-right: 2px;"></i>最近文章</div>
  <div class="recent-posts-list">
    
      <div class="recent-posts-item">
        <div class="recent-posts-item-title">2021-01-30</div>
        <a href="/2021/01/30/blog-3/"><div class="recent-posts-item-content">个人博客部署七牛云，并且使用自定义域名</div></a>
      </div>
    
      <div class="recent-posts-item">
        <div class="recent-posts-item-title">2021-01-29</div>
        <a href="/2021/01/29/blog-2/"><div class="recent-posts-item-content">小技巧，方便写个人博客MD文档</div></a>
      </div>
    
      <div class="recent-posts-item">
        <div class="recent-posts-item-title">2021-01-29</div>
        <a href="/2021/01/29/blog-1/"><div class="recent-posts-item-content">手把手教你搭建、上线个人博客</div></a>
      </div>
    
      <div class="recent-posts-item">
        <div class="recent-posts-item-title">2021-01-29</div>
        <a href="/2021/01/29/domain-1/"><div class="recent-posts-item-content">域名注册及证书申请</div></a>
      </div>
    
  </div>
</div>
  </article>
  
  
</div>
          </aside>
        </div>
      </div>
    </div>
  </div>
  
  <footer class="footer">
  <div class="footer-container">
    <div>
      <div class="footer-dsc">
        <span>Copyright ©
          
          2020 -
          
          2021
        </span>
        &nbsp;
        <a href="/" class="footer-link">淡漠-Blog </a>
      </div>
    </div>

    
    <div class="footer-dsc">
      
      Powered by
      <a href="https://hexo.io/" class="footer-link" target="_blank" rel="nofollow noopener noreferrer">&nbsp;Hexo </a>
      
      
      <span>&nbsp;|&nbsp;</span>
      
      
      Theme -
      <a href="https://github.com/theme-kaze" class="footer-link" target="_blank"
        rel="nofollow noopener noreferrer">&nbsp;Kaze</a>
      
    </div>
    
    
    
    
      <div class="footer-dsc">
        
        本站总访问量<span id="busuanzi_value_site_pv"></span>次
        
        
        <span>&nbsp;|&nbsp;</span>
        
        
        本站总访客数<span id="busuanzi_value_site_uv"></span>次
        
      </div>
      
    
</footer>
  <a role="button" id="scrollbutton" class="basebutton"  aria-label="回到顶部">
  <i class="iconfont icon-arrowleft button-icon"></i>
</a>
<a role="button" id="menubutton" class="basebutton">
  <i class="iconfont icon-menu button-icon"></i>
</a>
<a role="button" id="popbutton" class="basebutton" aria-label="控制中心">
  <i class="iconfont icon-expand button-icon"></i>
</a>
<a role="button" id="darkbutton" class="basebutton darkwidget" aria-label="夜色模式">
  <i class="iconfont icon-weather button-icon"></i>
</a>
<a role="button" id="searchbutton" class="basebutton searchwidget" aria-label="搜索">
  <i class="iconfont icon-search button-icon"></i>
</a>

  
  
  
  <script>
  var addImgLayout = function () {
    var img = document.querySelectorAll('.post-content img');
    var i;
    for (i = 0; i < img.length; i++) {
      var wrapper = document.createElement('a');
      wrapper.setAttribute('href', img[i].getAttribute('data-src'));
      wrapper.setAttribute('aria-label', 'illustration');
      wrapper.style.cssText = 'width: 100%; display: flex; justify-content: center;';
      if (img[i].alt) wrapper.dataset.caption = img[i].alt;
      wrapper.dataset.nolink = true;
      img[i].before(wrapper);
      wrapper.append(img[i]);
      var divWrap = document.createElement('div');
      divWrap.classList.add('gallery');
      wrapper.before(divWrap);
      divWrap.append(wrapper);
    }
    baguetteBox.run('.gallery');
  }
</script>
<script>loadScript("/js/lib/lightbox/baguetteBox.min.js", addImgLayout)</script>
  
  
  
<script src="/js/main.js"></script>

  
  <script>loadScript("/js/lib/busuanzi.min.js")</script>
  
  
  <script>
    var addLazyload = function () {
      var observer = lozad('.lozad', {
        load: function (el) {
          el.srcset = el.getAttribute('data-src');
        },
        loaded: function (el) {
          el.classList.add('loaded');
        }
      });
      observer.observe();
    }
  </script>
  <script>loadScript("/js/lib/lozad.min.js", addLazyload)</script>
  
  
</body>

</html>